<!doctype html>
<html lang="en">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <title>个人中心 </title>
    <style type="text/css">
        .personalHome .row {
            margin-left: 0;
            margin-right: 0;
            padding-left: 0;
            padding-right: 0;
        }

        .personalHome .row .col-md-9 {
            margin-left: 0;
            margin-right: 0;
            padding-left: 0;
            padding-right: 0;
        }

        .recharge {
            padding: 8px 50px;
        }

        .transferOut {
            padding: 8px 50px;
        }

        .moneyMan img {
            float: left;
            border-right: 1px solid #ccc;
            padding-right: 10px;
            margin-right: 10px;
        }
    </style>
</head>
<body>
<!--HEADER-->
{include file="Public/header"/}
<!--HEADER-->

<div class="clearfix clearfix20"></div>

<div class="container">
    <div class="row">
        {include file="Public/readme"/}
        <div class="col-sm-9">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">用户中心</h3>
                </div>
                <div class="panel-body">
                    <ul>
                        <li>账号：{:substr(Session('phonenumber'),0,3).'****'.substr(Session('phonenumber'),-4)}</li>
                        <li>姓名：{if condition="strlen($ste.name)==11"}{:substr($ste.phonenumber,0,3).'****'.substr($ste.phonenumber,-4)}{else\}{:substr_replace($ste.name,'*',3,3)}{/if}</li>
                        <li>最后登录：{$time.logintime}</li>
                    </ul>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">余额管理</h3>
                </div>
                <div class="panel-body">
                    <table class="table">
                        <thead>
                        <tr>
                            <th>可用余额</th>
                            <th>提现申请</th>
                            <th>待付款</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>{$ste.balance}元</td>
                            <td>{$str}元</td>
                            <td>{$strr}元</td>
                        </tr>
                        </tbody>
                    </table>
                    <a class="pull-left btn btn-success ml30" href="/home/Recharge/recharge">充值</a>
                    <a class="pull-left btn btn-primary ml10" href="/home/Deposit/deposit">提现</a>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">期货账户管理</h3>
                </div>
                {if condition="$ste['assetaccount'] != '' and $ste['assetaccount'] != '00000'"}
                <div class="panel-body">

                    <div class="col-sm-4">
                        <!--IP地址：{$qjgjz.ip}<br />-->
                        操盘总金额：{$data.Balance}元<br />
                        自有资金（本金）：{$data.bad}元
                    </div>
                    <div class="col-sm-4">
                        期货账号：{$ste.assetaccount}<br />
                        密码（登录密码为账号密码）<br />
                    </div>

                    <div class="col-sm-12"></div>

                    <div class="clearfix clearfix20"></div>
                    <a class="pull-left btn btn-success ml30" href="/home/Futures/golden">入金</a>
                    <a class="pull-left btn btn-primary ml10" href="/home/Futures/withdraw">出金</a>
                </div>
                {else /}
                <div class="panel-body">
                    <a href="/home/Openanaccount/index"  class="btn btn-primary recharge mb-2">开户</a>
                </div>
                {/if}
            </div>
        </div>
    </div>
</div>
{include file="Public/footer"/}